@extends('admin/layout/index')


@section('content')

@if (count($errors) > 0)
    <div class="mws-form-message error">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>用户详情</span>
    </div>
    <div class="mws-panel-body no-padding">
    	<form class="mws-form" action="/admin/userdetails/update" method="post" >
    		{{ csrf_field() }}
            <input type="hidden" name="uid" value="{{ $data['uid'] }}">
            <input type="hidden" name="id" value="{{ $data['id'] }}">
        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label">真实姓名(*必须填写)</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="truename" value="{{ $data['truename'] }}">
        				</div>
        			</div>
				<div class="mws-form-row">
    				<label class="mws-form-label">性别(*必须填写)</label>
    				<div class="mws-form-item clearfix">
    					<ul class="mws-form-list inline">
    						<li><input type="radio" name="sex" value="男" @if($data['sex'] == '男') checked @endif> <label>男</label></li>
    						<li><input type="radio" name="sex" value="女" @if($data['sex'] == '女') checked @endif> <label>女</label></li>
    						<li><input type="radio" name="sex" value="保密" @if($data['sex'] == '保密') checked @endif> <label>保密</label></li>
    					</ul>
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">身份证号(*必须填写)</label>
    				<div class="mws-form-item">
    					<input type="text" class="small" name="idcard" value="{{ $data['idcard']}}">
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">生日</label>
    				<div class="mws-form-item">
    					<input type="text" class="small" name="birthday" value="{{ $data['birthday']}}">
    				</div>
    			</div>
				<div class="mws-form-row">
    				<label class="mws-form-label">身份</label>
    				<div class="mws-form-item clearfix">
    					<ul class="mws-form-list inline">
    						<li><input type="radio" name="indentity" value="学生" @if($data['indentity'] == '学生') checked @endif> <label>学生</label></li>
    						<li><input type="radio" name="indentity" value="在职" @if($data['indentity'] == '在职') checked @endif> <label>在职</label></li>
    						<li><input type="radio" name="indentity" value="无业游民" @if($data['indentity'] == '无业游民') checked @endif> <label>无业游民</label></li>
    						<li><input type="radio" name="indentity" value="自由职业" @if($data['indentity'] == '自由职业') checked @endif> <label>自由职业</label></li>
    						<li><input type="radio" name="indentity" value="其他" @if($data['indentity'] == '其他') checked @endif> <label>其他</label></li>
    					</ul>
    				</div>
    			</div>
				<div class="mws-form-row">
    				<label class="mws-form-label">个人情况</label>
    				<div class="mws-form-item clearfix">
    					<ul class="mws-form-list inline">
    						<li><input type="radio" name="personinfor" value="单身狗" @if($data['personinfor'] == '单身狗') checked @endif> <label>单身狗</label></li>
    						<li><input type="radio" name="personinfor" value="恋爱" @if($data['personinfor'] == '恋爱') checked @endif> <label>恋爱</label></li>
    						<li><input type="radio" name="personinfor" value="已婚" @if($data['personinfor'] == '已婚') checked @endif> <label>已婚</label></li>
    						<li><input type="radio" name="personinfor" value="保密" @if($data['personinfor'] == '保密') checked @endif> <label>保密</label></li>
    					</ul>
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">身高</label>
    				<div class="mws-form-item">
    					<select name="height">
    						<option value="">--请选择--</option>
    						@for($i=100;$i<=230;$i++)
    						<option  value="{{ $i }}" @if($i == $data['height']) selected @endif> {{ $i }} </option>
    						@endfor
    					</select> cm
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">体重</label>
    				<div class="mws-form-item">
    					<select name="weight">
    						<option value="">--请选择--</option>
    						@for($i=30;$i<=150;$i++)
    						<option  value="{{ $i }}" @if($i == $data['weight']) selected @endif> {{ $i }} </option>
    						@endfor
    					</select> Kg
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">血型</label>
    				<div class="mws-form-item clearfix">
    					<ul class="mws-form-list inline">
    						<li><input type="radio" name="bloodtype" value="A" @if($data['bloodtype'] == 'A') checked @endif> <label>A</label></li>
    						<li><input type="radio" name="bloodtype" value="B" @if($data['bloodtype'] == 'B') checked @endif> <label>B</label></li>
    						<li><input type="radio" name="bloodtype" value="AB" @if($data['bloodtype'] == 'AB') checked @endif> <label>AB</label></li>
    						<li><input type="radio" name="bloodtype" value="O" @if($data['bloodtype'] == 'O') checked @endif> <label>O</label></li>
    						<li><input type="radio" name="bloodtype" value="稀有" @if($data['bloodtype'] == '稀有') checked @endif> <label>稀有</label></li>
    					</ul>
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">居住地</label>
    				<div class="mws-form-item">
    					<input type="text" class="small" name="nowresidence" value="{{ $data['nowresidence'] }}">
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">家乡</label>
    				<div class="mws-form-item">
    					<input type="text" class="small" name="hometown" value="{{ $data['hometown'] }}">
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">收货地址(*必须填写)</label>
    				<div class="mws-form-item">
    					<input type="text" class="small" name="adress" value="{{ $data['adress'] }}">
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">个性签名</label>
    				<div class="mws-form-item">
    					<textarea rows="" cols="" class="large" name="signature" value="{{ old('signature') }}">{{ $data['signature'] }}</textarea>
    				</div>
    			</div>		
    		</div>
    		<div class="mws-button-row">
    			<input type="submit" value="修改" class="btn btn-danger">
    			<input type="reset" value="重置" class="btn ">
    		</div>
    	</form>
    </div>    	
</div>

@endsection

